from easycore.common.registry import Registry

ARGUMENT_REGISTRY = Registry("argumentation")

def argument_with_params(image, annotations, argument_method:str, params=None):
    if argument_method is None or argument_method == '':
        return image, annotations
    else:
        return ARGUMENT_REGISTRY.get(argument_method)(image, annotations, params=params)